#ifndef WHIRLIXDIALOG_H
#define WHIRLIXDIALOG_H

#include <QDialog>

namespace Ui {
class WhirlixDialog;
}

class WhirlixDialog : public QDialog
{
    Q_OBJECT
    
public:
    explicit WhirlixDialog(QWidget *parent = 0);
    ~WhirlixDialog();

    void setDegree(int degree);

signals:
    void degreeChanged(int);
    void applyOperator(QString);
    void cancelOperator();

protected:
    void showEvent(QShowEvent *);
    void closeEvent(QCloseEvent *);
    void paintEvent(QPaintEvent *);

private slots:
    void emitDegreeChanged(int degree);
    void applyButtonClicked();
    void cancelButtonClicked();
    
private:
    Ui::WhirlixDialog *ui;
};

#endif // WHIRLIXDIALOG_H
